package xpn.platform.modules.workflow.other.commentcolumn;

import lombok.Getter;
import lombok.Setter;

import xpn.platform.common.persistence.AbstractBaseEntity;
import xpn.platform.modules.workflow.definition.process.Process;

import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.validation.constraints.NotNull;

/**
 * 意见栏
 */
@Entity
@Table(name = "wf_comment_column")
@Getter
@Setter
public class CommentColumn extends AbstractBaseEntity {

	private static final long serialVersionUID = 5554964075029798799L;
	/**
	 * 意见栏编号
	 */
	@NotNull
	private String no;

	/**
	 * 意见栏名称
	 */
	@NotNull
	private String name;

	/**
	 * 排序号
	 */
	@NotNull
	private Float sortNo;

	/**
	 * 所属流程
	 */
	@ManyToOne
	@JoinColumn(nullable = false)
	private Process process;
}
